home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr09
/
gedsrt13.zip
/
KSORT.DOC
< prev
next >
Wrap
Text File
|
1993-06-01
|
2KB
|
24 lines
KSORT - ASCII file sort utility =======================> Version 0.0 6/30/87
Function: Sort standard ASCII files up to 30 MB (records terminated with CR/LF)
Usage: KSORT <options><keyspec><keyspec>... where <options> are:
/I<input> where <input> is the input file name (file names may include path)
/O<output> where <output> is the output file name (default=SCRN:)
/W<work> where <work> is the sort work file name (default=$SORT)
<keyspec> up to 8 sort keys can be specified. (default=sort entire record)
Each <keyspec> is specified as /K/<pos>/<len>/<opt>/<opt>/... where:
<pos> is the starting character position of this key in the record,
<len> is the length of the key (default=remaining length of record if
this is the last key, if not last key then default length=1)
<opt> = /D for descending sequence,
/U sort lower case alpha same as the upper case equivalent
/R right justify the sort key
Other options:
/F/<sep> to sort files consisting of fields separated by special characters
where <sep> is the decimal value of the character (default=44 for commas).
For this option, the key position parameter indicates the field number.
If /D/U/R option(s) are placed before the 1st keyspec, the option(s) apply to
all keys to be sorted. KSORT retains the original sequence on duplicate keys.
KSORT is written entirely in BASIC and compiled using Ken Ward
Microsoft's QuickBASIC. If you find KSORT fast & easy P.O. Box 75727
to use, a contribution of $10 would be appreciated. Okla City, OK 73147
find